import { Lang } from './enum';
import { Locale } from './locale';

const locale: Locale = {
  lang: Lang.zh_CN,
  Table: {
    show_cached_seletion: '显示所有已选记录',
    hide_cached_seletion: '隐藏所有已选记录',
    selection_tips: '已勾选 {count} 条数据',
    select_current_page: '勾选当页',
    unselect_current_page: '取消勾选当页',
    select_all_page: '跨页全选',
    unselect_all_page: '取消跨页全选',
    edit_button: '编辑',
    create_button: '新增',
    save_button: '保存',
    cancel_button: '取消',
    delete_button: '删除',
    remove_button: '移除',
    reset_button: '重置',
    retry_button: '重试',
    download_button: '下载',
    query_button: '查询',
    expand_button: '展开',
    collapse_button: '合并',
    export_button: '导出',
    file_name: '文件名',
    defalut_export: '默认导出文件名',
    export_failed: '导出失败',
    export_success: '导出成功',
    export_ing: '正在导出...',
    export_break: '数据导出中断，点击重试重新导出',
    export_operating: '正在导出表格数据点击取消终止导出',
    export_waiting: '数据量比较大，耐心等待',
    more_button: '其他操作',
    advanced_search: '高级搜索',
    dirty_info: '显示条件已更改',
    restore: '还原',
    empty_data: '暂无数据',
    choose_export_columns: '请选择要导出的列',
    column_name: '列名',
    filter_bar_placeholder: '过滤表',
    advanced_query: '高级查询',
    advanced_query_conditions: '高级查询条件',
    more: '更多',
    enter_text_filter: '搜索过滤条件',
    clear_filter: '清除筛选项',
    save_filter: '保存筛选',
    collapse: '收起',
    predefined_fields: '预定义字段',
    add_filter: '添加筛选',
    enter_search_content: '模糊查询，聚合高频文本字段',
    save_as: '另存为',
    no_save_filter: '暂无保存筛选',
    modified: '已修改',
    fast_filter: '默认筛选',
    default_flag: '默认',
    rename: '重新命名',
    set_default: '设为默认',
    cancel_default: '取消默认',
    restore_default: '恢复默认',
    filter_rename: '筛选重命名',
    save_filter_as: '筛选另存为',
    whether_delete_filter: '是否删除筛选记录',
    filter_name: '筛选名称',
    please_enter: '请输入',
    query_option_yes: '是',
    query_option_no: '否',
    customization_settings: '个性化设置',
    display_settings: '显示设置',
    view_display: '显示视图',
    tiled_view: '表平铺视图',
    aggregation_view: '表聚合视图',
    density_display: '显示密度',
    normal: '正常',
    compact: '紧凑',
    parity_row: '斑马纹',
    table_settings: '表格设置',
    height_settings: '高度设置',
    auto_height: '自动高度',
    fixed_height: '固定高度',
    flex_height: '自适应高度',
    flex_height_help: '表格高度 = 窗口高度 - 自适应高度',
    column_settings: '表头设置',
    left_lock: '左侧冻结',
    right_lock: '右侧冻结',
    unlocked: '未冻结',
    unlock: '取消冻结',
    top: '置顶',
    up: '前置一列',
    down: '后置一列',
    row_expand_settings: '行展开设置',
    expand_cell: '展开单元格',
    expand_row: '展开整行',
    expand_column: '展开整列',
    collapse_cell: '收起单元格',
    collapse_row: '收起整行',
    collapse_column: '收起整列',
  },
  Pagination: {
    page: '页',
    jump_to: '跳至',
    jump_to_confirm: '确定',
    records_per_page: '每页行数：',
  },
  Upload: {
    file_selection: '选择文件',
    click_to_upload: '点击上传',
    upload_success: '上传成功',
    upload_failure: '上传失败',
    no_file: '没有文件',
    been_uploaded: '文件已上传',
    upload_path_unset: '未设置上传路径',
    not_acceptable_prompt: '含有上传类型不匹配的文件，期待：',
    file_list_max_length: '文件数量超过最大限制',
  },
  Attachment: {
    value_missing_no_label: '请上传附件。',
    value_missing: '请上传{label}。',
    upload_attachment: '上传附件',
    upload_picture: '上传图片',
    download_all: '全部下载',
    view_attachment: '查看附件',
    no_attachments: '暂无附件',
    by_upload_time: '按上传时间',
    by_name: '按名称',
    operation_records: '操作记录',
    view_operation_records: '查看操作记录',
    download: '下载',
    delete: '删除',
    file_max_size: '文件大小不能超过：{size}',
    file_list_max_length: '文件数量最大限制为：{count}',
    file_type_mismatch: '文件类型不匹配，正确的类型：{types}',
  },
  Modal: {
    ok: '确定',
    cancel: '取消',
    close: '关闭',
    preview_picture: '图片预览',
  },
  DataSet: {
    unsaved_data_confirm: '有未保存的数据，是否继续？',
    invalid_query_dataset: '查询条件数据集校验不通过',
    delete_selected_row_confirm: '确认删除选中行？',
    delete_all_row_confirm: '确认删除所有行？',
    query_failure: '查询失败',
    submit_success: '提交成功',
    submit_failure: '提交失败',
    cannot_add_record_when_head_no_current: '头未选中记录，不能新建行记录',
  },
  DatePicker: {
    value_missing_no_label: '请选择日期。',
    value_missing: '请选择{label}。',
    type_mismatch: '请输入有效的日期。',
    ok: '确定',
    today: '今天',
    now: '此刻',
    this_week: '本周',
    invalid_date: '无效日期',
  },
  EmailField: {
    value_missing_no_label: '请输入邮箱地址',
    value_missing: '请输入{label}。',
    type_mismatch: '请输入有效的邮箱地址',
  },
  IntlField: {
    modal_title: '输入多语言信息',
  },
  NumberField: {
    value_missing_no_label: '请输入数字',
    value_missing: '请输入{label}。',
  },
  Radio: {
    value_missing_no_label: '请选择。',
    value_missing: '请选择{label}。',
  },
  SelectBox: {
    value_missing_no_label: '请选择。',
    value_missing: '请选择{label}。',
  },
  Select: {
    value_missing_no_label: '请选择。',
    value_missing: '请选择{label}。',
    no_matching_results: '无匹配结果。',
    select_all: '全选',
    select_re: '反选',
    unselect_all: '无',
    common_item: '常用项',
  },
  Lov: {
    choose: '请选择',
  },
  Transfer: {
    items: '项',
  },
  UrlField: {
    value_missing_no_label: '请输入网址。',
    value_missing: '请输入{label}。',
    type_mismatch: '请输入有效的网址。',
  },
  ColorPicker: {
    value_missing_no_label: '请选择颜色',
    value_missing: '请选择{label}。',
    type_mismatch: '请选择有效的颜色。',
  },
  Validator: {
    bad_input: '请输入一个数字。',
    pattern_mismatch: '请输入有效的值。',
    range_overflow: '{label}必须小于或等于{max}。',
    range_underflow: '{label}必须大于或等于{min}。',
    step_mismatch: '请输入有效值。最接近的有效值为{0}。',
    step_mismatch_between: '请输入有效值。两个最接近的有效值分别为{0}和{1}。',
    too_long: '请将该内容减少到{maxLength}个或更少字符（目前您使用了{length}个字符）。',
    too_short: '请将该内容增加到{minLength}个或更多字符（目前您使用了{length}个字符）。',
    type_mismatch: '请输入与类型匹配的有效值。',
    value_missing_no_label: '请填写此字段。',
    value_missing: '请输入{label}。',
    unique: '该字段值重复，请重新填写。',
    unknown: '未知错误。',
  },
  Icon: {
    icons: '图标',
    whatsNew: '新增',
    direction: '方向性',
    suggestion: '提示建议性',
    edit: '编辑类',
    data: '数据类',
    other: '网站通用',
    series: '套系类',
  },
  Cascader: {
    please_select: '请选择',
    value_missing_no_label: '请选择。',
    value_missing: '请选择{label}。',
    select_all: '全选',
    unselect_all: '无',
  },
  Screening: {
    selected: '已选',
    pack_up: '收起',
    more: '更多',
    multi_select: '多选',
    confirm: '确认',
    cancel: '取消',
  },
};

export default locale;
